package com.online.fund.util;

import java.io.Serializable;

public class ServiceResult<T> implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7296855568223621279L;
	
	private int errCode;
    private String errMsg;
    private T obj;

    public ServiceResult(){}

    public ServiceResult(int errCode){
        this.errCode = errCode;
    }

    public ServiceResult(int errCode,String errMsg){
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public ServiceResult(int errCode,String errMsg,T obj){
        this.errCode = errCode;
        this.errMsg = errMsg;
        this.obj = obj;
    }

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }
}
